import request from '@/utils/request'

// 搜索页面数据
export function searchIndex(data) {
    return request({
        url: '/mall/search/index',
        method: 'post',
        data: data
    })
}

// 搜索帮助
export function searchHelper(data) {
    return request({
        url: '/mall/search/helper',
        method: 'post',
        data: data
    })
}

// 搜索历史
export function searchClearHistory(data) {
    return request({
        url: '/mall/search/clearhistory',
        method: 'post',
        data: data
    })
}
